package com.cxm.weilai;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @program: weilai-cloud
 * @description: 初始化应用
 * @author: ChenMan
 * @create: 2019-03-26 13:28
 */
@SpringBootApplication
@EnableEurekaClient
//@EnableHystrix// 注解开启熔断器
public class LocationApplicationService {

  public static void main(String[] args) {
    SpringApplication.run(LocationApplicationService.class, args);
  }

  /**
   * 开启负载均衡
   */
//  @Bean
//  @LoadBalanced
//  RestTemplate restTemplate(){
//    return new RestTemplate();
//  }

}
